The ColorPicker Component > Customizing the ColorPicker component |
Customizing the ColorPicker component
You can customize the appearance of a component by changing the properties of the FStyleFormat object. If you want to change a component's appearance completely, try to reskin it (described below).
Modifying FStyleFormat properties
The majority of the FStyleFormat properties affect the ColorPicker component.
The following table lists FStyleFormat properties you can edit to format the
SimpleMenu component. You can change individual elements, or you can set global
properties using globalStyleFormat:
Property |
Description |
|---|---|
|
Changes the color of the arrow in the ColorPicker component. |
|
Changes the background color of the text area in the ColorPicker component. |
|
Changes the background color of the ColorPicker component. |
|
Changes the color of the arrow when the ColorPicker components is disabled. |
|
Changes the highlight color of the bevels on the ColorPicker component. |
|
Changes the second highlight color of the bevels on the ColorPicker component. |
|
Changes the shadow color of the bevels on the ColorPicker component. |
|
Changes the darker shadow color of the bevels on the ColorPicker component. |
Here is an example that uses the FStyleFormat object to set style properties for the ColorPicker component:
globalStyleFormat.face = 0xCC0000; globalStyleFormat.highlight = 0x33aa99; globalStyleFormat.apply();
For more information about the FStyleFormat object and a list of all its properties, see the FStyleFormat entries in the online ActionScript Dictionary in Macromedia Flash MX.
Reskinning the ColorPicker component
When you add components to a Macromedia Flash document, a Flash UI Components folder is added to the Library panel. That folder contains a subdirectory called Component Skins. Within that subdirectory is a Skins subdirectory for each component that contains user interface elements you can redesign. Editing the skin completely changes the appearance of the component. Change the skin of an instance of a component by selecting the component on the stage and selecting Edit > Edit in Place, or by double-clicking it in the directory in the Library panel.
The assets for the ColorPicker component are located in the Library panel in the Flash UI Components\Core Assets-Developer Only\ColorPicker Assets folder.
For more information on customizing component skins, see the Macromedia Flash MX Help (select Help > Using Flash from within the program).